package com.taotao.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @author wangjin
 * @title: SwCloudConfig
 * @projectName sw-springcloud
 * @description:
 * @date 2021/10/28 22:20
 */
@EnableConfigurationProperties({SwCloudConfig.class})
@ConfigurationProperties(
        prefix = "sw.cloud"
)
public class SwCloudConfig {

    //server端服务注册中心名称
    private String serviceName;
    //server端服务注册中心地址
    private String serverRegisterUrl;

    public String getServerRegisterUrl() {
        return serverRegisterUrl;
    }

    public void setServerRegisterUrl(String serverRegisterUrl) {
        this.serverRegisterUrl = serverRegisterUrl;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }
}
